package com.zretc.dao;

import java.util.List;

import com.zretc.entity.Food;
import com.zretc.tools.PageData;

public interface FoodDao {
	//模糊查询
	public List<Food> getFood(String keywords);
	//增加
	public boolean addFood(Food food);
	//删除
	public boolean delFood(int foodid);
	//修改
	public boolean updateFood(Food food);
	//根据菜名精确查询
	public Food getFoodByName(String foodname);
	//分页
	public PageData<Food> getFoodByPage(int page, int pageSize,String keywords);

}
